﻿<UserControls:ScrumUserControl x:Class="ScrumTable.UI.View.WinTouch.UserControls.Tool.ToolBox"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="http://schemas.microsoft.com/surface/2008" xmlns:Converter="clr-namespace:ScrumTable.UI.View.Converter;assembly=ScrumTable.UI.View" xmlns:Localization="clr-namespace:ScrumTable.UI.View.Localization;assembly=ScrumTable.UI.View" xmlns:UserControls="clr-namespace:ScrumTable.UI.View.WinTouch.UserControls" xmlns:CustomControl="clr-namespace:ScrumTable.UI.View.CustomControl;assembly=ScrumTable.UI.View" Background="#FFEFEFEF">


    <UserControl.Resources>
        <Style  TargetType="{x:Type s:SurfaceButton}" BasedOn="{StaticResource {x:Type s:SurfaceButton}}">
            
            <Setter Property="Height" Value="48" />
            <Setter Property="Width" Value="48" />
            <Setter Property="Margin" Value="3" />
            <Setter Property="Background" Value="Pink" />           
            <Style.Triggers>
                <Trigger Property="IsEnabled" Value="False">
                    <Setter Property="OpacityMask" Value="{StaticResource disabledMask}" />
                </Trigger>
                <Trigger Property="IsEnabled" Value="True">
                    <Setter Property="OpacityMask" Value="{StaticResource enabledMask}" />
                </Trigger>

            </Style.Triggers>
        </Style>
    </UserControl.Resources>
    
    <Grid>
 
        <Grid.RowDefinitions>
            <RowDefinition/>            
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition ></ColumnDefinition> 
        </Grid.ColumnDefinitions>       
        
  
  
        <StackPanel  Grid.Column="0" Grid.Row="0" Grid.RowSpan="2"  Orientation="Horizontal"  >     
            <GroupBox Localization:Translate.Uid="Tools_Open" Header="{Localization:Translate Default=[Open]}" HorizontalAlignment="Left" VerticalAlignment="Top">
                <StackPanel Orientation="Horizontal">
                    <s:SurfaceButton Click="OnOpenProjectPlanningUserStories"  Background="{StaticResource IconStackRanking}" Localization:Translate.Uid="MenuProjectPlanningRanking" ToolTip="{Localization:Translate Default=[Story Ranking]}"/>
                    <s:SurfaceButton Click="OnOpenProjectPlanningIterations" Background="{StaticResource IconProjectPlanningIterations}" Localization:Translate.Uid="MenuProjectPlanningSprints" ToolTip="{Localization:Translate Default=[Sprints]}" ></s:SurfaceButton>
                    <!--
                    <s:SurfaceButton Click="OnOpenSprintPlanningTask" Background="{StaticResource IconSprintPlanning}" Localization:Translate.Uid="MenuSprintTask" ToolTip="{Localization:Translate Default=[Tasks]}"/>                    
                    -->
                    <s:SurfaceButton Click="OnOpenStackedDailyScrumStoryBoard" Background="{StaticResource IconScrumBoard}" Localization:Translate.Uid="MenuDailyScrumBoard" ToolTip="{Localization:Translate Default=[Scrum Board]}"></s:SurfaceButton>
                    <s:SurfaceButton Click="OnOpenDailyScrumTaskBoard" Background="{StaticResource IconTaskBoard}" Localization:Translate.Uid="MenuDailyScrumTaskBoard" ToolTip="{Localization:Translate Default=[Task Board]}"></s:SurfaceButton>
                    <s:SurfaceButton Click="OnOpenDailyScrumStoryBoard" Background="{StaticResource IconStoryBoard}" Localization:Translate.Uid="MenuDailyScrumStoryBoard" ToolTip="{Localization:Translate Default=[Story Board]}"></s:SurfaceButton>   
                    
                </StackPanel>
            </GroupBox>
            <GroupBox  Localization:Translate.Uid="Tools_Edit" Header="{Localization:Translate Default=[Edit]}" HorizontalAlignment="Left">
                <StackPanel Orientation="Horizontal" VerticalAlignment="Top" >
                    <s:SurfaceButton Background="{StaticResource IconUndo }" Click="OnUndo" IsEnabled="{Binding Path=ScrumData.DataContext.UndoManager.CanUndo}" Localization:Translate.Uid="ToolsUndo" ToolTip="{Localization:Translate Default=[Undo]}"></s:SurfaceButton>
                    <s:SurfaceButton Background="{StaticResource IconRedo }" Click="OnRedo" IsEnabled="{Binding Path=ScrumData.DataContext.UndoManager.CanRedo}" Localization:Translate.Uid="ToolsRedo" ToolTip="{Localization:Translate Default=[Redo]}"></s:SurfaceButton>
                    <s:SurfaceButton Background="{StaticResource IconOpenUndo }" Click="OnShowUndoRedoHistory"  Localization:Translate.Uid="ToolsUndoWindow" ToolTip="{Localization:Translate Default=[recent changes]}"></s:SurfaceButton>                    
                </StackPanel>
            </GroupBox>            
            <GroupBox Localization:Translate.Uid="Tools_Function" Header="{Localization:Translate Default=[Function]}">
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left"  VerticalAlignment="Top" >
                    <s:SurfaceButton Background="{StaticResource IconBurnDown }" Click="OnShowBurnRate" Localization:Translate.Uid="Tools_Chart" ToolTip="{Localization:Translate Default=[Reports]}"></s:SurfaceButton>                    
                    <s:SurfaceButton Background="{StaticResource IconFilter}" Click="OnFilter" Localization:Translate.Uid="ToolsFilter" ToolTip="{Localization:Translate Default=[Filter]}"></s:SurfaceButton>
                    <s:SurfaceButton Background="{StaticResource IconGlass}" Click="OnSearch" Localization:Translate.Uid="ToolsSearch" ToolTip="{Localization:Translate Default=[Search]}"></s:SurfaceButton>
                    <s:SurfaceButton Background="{StaticResource IconRotate }" Click="OnRotate" Localization:Translate.Uid="ToolsRotate" ToolTip="{Localization:Translate Default=[Rotate]}"></s:SurfaceButton>
                    <s:SurfaceButton Background="{StaticResource IconMembers}" Click="OnTeamMemberOpen" Localization:Translate.Uid="ToolsTeamMembers" ToolTip="{Localization:Translate Default=[Team Members]}"></s:SurfaceButton>
                    <s:SurfaceButton Background="{StaticResource IconChangeLoginMember}" Click="OnChangeLogin" Localization:Translate.Uid="ToolsChangeLoginMember" ToolTip="{Localization:Translate Default=[ChangeLogin]}" IsEnabled="{Binding ScrumData.IsMultipleLogin}"></s:SurfaceButton>
                    <!--
                    <s:SurfaceButton Background="{StaticResource IconScrumMap }" Click="OnGoToOverView" Localization:Translate.Uid="ToolsGoToMap" ToolTip="{Localization:Translate Default=[Overview]}"></s:SurfaceButton>
                    -->
                    <s:SurfaceButton Background="{StaticResource IconLogOut }" Click="OnLogOut" Localization:Translate.Uid="ToolsLogOut" ToolTip="{Localization:Translate Default=[LogOut]}"></s:SurfaceButton>
                    <s:SurfaceButton Background="{StaticResource IconAbout }" Click="OnAbout" Localization:Translate.Uid="ToolsAbout" ToolTip="{Localization:Translate Default=[About]}"></s:SurfaceButton>
                </StackPanel>
            </GroupBox>           
        </StackPanel>
        <Label VerticalAlignment="Bottom" HorizontalAlignment="Left" FontWeight="Bold"  Margin="0,0,0,-6" FontSize="11"  Visibility="Hidden" IsHitTestVisible="False" Name="LabelToolTip"> asdfasdf  </Label>
    </Grid>
</UserControls:ScrumUserControl>
